InitCtlHtml and ExitCtlHtml

The InitCtlHtml and ExitCtlHtml functions must be called to initialize and exit the CtlHTML Control Library when a statically linked version of the library is used. Static link libraries are included in the Pro version only. None of these steps are required for the DLL version. Note that while using a static link library requires extra steps, using one eliminates having to ship a CtlHTML Control Library DLL with your program, thereby eliminating the possibility of configuration-related problems that often arise when using shared DLLs.

void InitCtlHtml(
  HINSTANCE hInst                  // handle to module containing resources
);
void ExitCtlHtml( );

Description

Call the InitCtlHtml function to initialize the CtlHTML Control Library when a statically linked version of the library is used. For example with MFC:


BOOL CMyApp::InitInstance()
{
   ...
   // init CtlHTML Control Library - necessary for static link library version
   InitCtlHtml(AfxGetInstanceHandle());
   ...
   return TRUE;
}

Similarly, call the ExitCtlHtml function to exit the CtlHTML Control Library when a statically linked version of the library is used. For example with MFC:


int CMyApp::ExitInstance() 
{
   // exit the CtlHTML Control Library - necessary for static link library version
   ExitCtlHtml();
   return CWinApp::ExitInstance();
}

Note: The statically linked versions of the library also require that you include the resources found in \CtlHtmlRes.rc and the resource IDs found in \CtlHtmlRes.h.

Copyright ⌐ 1999, Windmill Point Software. All Rights Reserved.
Last Updated May 19, 1999